﻿using System;

class Mark
{
    #region Properties

    public float Value { get; private set; }
    public DateTime Date { get; private set; }
    public Teacher SigningTeacher { get; private set; }

    #endregion

    #region Constructors

    public Mark(float value, Teacher signingTeacher)
    {
        if (value >= 2 && value <= 6)
        {
            this.Value = value;
        }
        else
        {
            // display error message - maybe MessageBox pop up
        }

        this.Date = DateTime.Now.Date;
        this.SigningTeacher = signingTeacher;
    }

    #endregion
}

